﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;


namespace idea0
{
    public class ExplosionEffect
    {
        public int X, Y;
        public Image Image;
        public DateTime StartTime;

        public ExplosionEffect(int x, int y, string imagePath)
        {
            X = x;
            Y = y;
            Image = Image.FromFile(imagePath);
            StartTime = DateTime.Now;
        }

        public bool IsExpired()
        {
            return DateTime.Now - StartTime > TimeSpan.FromSeconds(0.8);
        }
    }
}